package com.example.forum.dto;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Validated
public class ReplyCreate {

    @NotNull(message="文章id错误")
    private Integer id;


    @NotBlank(message = "内容不能为空")
    private String content;

}
